package com.ben.multiple.shiro.entity;

import java.util.ArrayList;
import java.util.List;
import lombok.Data;

/**
 * @author Ben
 * @date 2021/1/31
 */
@Data
public class RolePermission {
    public static final List<RolePermission> ROLE_PERMISSION_LIST = new ArrayList<>();

    static {
        ROLE_PERMISSION_LIST.add(new RolePermission("r1", "p1"));
        ROLE_PERMISSION_LIST.add(new RolePermission("r1", "p2"));
        ROLE_PERMISSION_LIST.add(new RolePermission("r2", "p2"));
    }

    String roleName;
    String permission;

    public RolePermission() {
    }

    public RolePermission(String roleName, String permission) {
        this.roleName = roleName;
        this.permission = permission;
    }
}
